package com.czk.model.iterator.practice;

import java.util.Iterator;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/6/17 22:39
 */
public class Client {
    public static void main(String[] args) {
        // 需要迭代的部门
        ResearchDevelopment researchDevelopment=new ResearchDevelopment();
        // 拿到该部门的迭代器
        Iterator iterator = researchDevelopment.iterator();
        while (iterator.hasNext()){
            System.out.println(iterator.next());
        }
        //
        System.out.println("==================");
        MarketDepartment marketDepartment=new MarketDepartment();
        Iterator iterator1 = marketDepartment.iterator();
        while (iterator1.hasNext()){
            System.out.println(iterator1.next());
        }
    }
}
